package com.zj.utils;

import com.zj.transaction.TransactionFactory;

import javax.sql.DataSource;

public final class Environment {
    private final String id;
    private final TransactionFactory transactionFactory;
    private final DataSource dataSource;
    public Environment(String id,TransactionFactory transactionFactory, DataSource dataSource) {
        this.id = id;
        this.transactionFactory=transactionFactory;
        this.dataSource = dataSource;
    }

    public String getId() {
        return this.id;
    }

    public TransactionFactory getTransactionFactory() {
        return this.transactionFactory;
    }

    public DataSource getDataSource() {
        return this.dataSource;
    }


}
